package 适配器模式;

public class Adpter implements Demo2{
    private Demo1 demo1;

    public Adpter(Demo1 demo1) {
        this.demo1 = demo1;
    }


    @Override
    public void add(Object o) {
        demo1.save(o);
    }

    @Override
    public void delect(Object... o) {
        for (Object o1 : o) {
            demo1.delect(o1);
        }

    }
}
